<?php
@ob_start();


$code       = str_replace('.htm','',$html->getUrl(2));
$email      = gpc_getStringPost("email");
$name       = gpc_getStringPost("name");
    
switch($act)
{
    case "regnewletter":
        ImportClass('newsletter');
        $rs = regnewsletter($email,$name);
        AjaxTransfer($rs[0],$rs[1]);
        break;    
    case "subscribe":
        ImportClass('newsletter');
        subscribe();
        break;
    case "unsubscribe":
        ImportClass('newsletter');
        unsubscribe();
        break;
    case "inserttour":
        TImport('tour');
        InsertBooking();
        break;
    case "bookhotel":
        TImport('hotel');
        InsertBookingHotel();
        break;
    case "insertreview":
        TImport('review');
        InsertReview();
        break;
    case 'insertcontactus':
        TImport('contactus');
        InsertContactUs();
        break;
    case 'sendfriend':
        TImport('newsletter');
        SendFriend();
        break;
    case 'insertcustomtour':
        TImport('customtourmap');
        InsertCustomTourMap();
        break;
    case 'inserttripplanner':
        TImport('tripplanner');
        InsertTripplanner();
        break;
        
    default:
        echo 'error';
        break;
}
exit;
?>